package com.cimr.comm.base;

import java.util.List;

/**
 * Created by liqi on 2017/11/24.
 * liqiwork@qq.com
 */
public abstract class BaseServiceImpl<T> implements BaseService<T> {
    public void insertObject_common(T t) {
        getDao().insertObject_common(t);
    }

    public void updateObject_common(T t) {
        getDao().updateObject_common(t);
    }

    public void deleteById_common(Object id) {
        getDao().deleteById_common(id);
    }

    public T selectById_common(Object id) {
        return (T)getDao().selectById_common(id);
    }

    public List<T> selectList_commom(T t) {
        return getDao().selectList_commom(t);
    }

    protected abstract BaseDao getDao();
}
